<form method="post" action="/adminarea/savedeliveryarea">	
	<div class="grid_6 alpha omega">
		<div>Coordinates</div>
	
		<div>
				<div id="div_form">
<?php 
	foreach ($this->allPoint as $point)
	{
		echo '<input name="lat[' . $point->id . ']" value="' . $point->lat . '" />';
		echo '<input name="lng[' . $point->id . ']" value="' . $point->lng . '" />';
//		print_r($point);
	}
		echo '<input type="hidden" id="last_num" value="' . ($point->id + 1) . '" />';
?>				
				</div>
		</div>
		<div>
			<a href="javascript:{}" onclick="idField = addField(idField)">Add one more</a><br>
		</div>
		<div>
			<input type="submit">
		</div>
	</div> 
	
	
</form>	